<%@ Control Language="C#" ClassName="Invoice" %>
<script runat="server">
	public string Title { get { return "Invoice"; } }
	public bool ShowNextPayment = false;
</script>
<!-- #include virtual = "Header.asp" -->
<div style="font-family:Monospace;font-size:90%">
LOAN#: <%#Eval("UsixID")%>
<p> VEHICLE: <%#Eval("Car Year","{0:0000}") %> <%#Eval("Make")%> <%#Eval("Model")%></p>

<table CellPadding="0" cellspacing="0">
	<col /><col Align="right" />
	<tr><td>Current Balance (Not Including Interest)</td><td><%#Eval("Total Principal")%></td></tr>
	<tr><td>Past Due Late Charges (L/C)</td><td><%#string.Format("{0:n2}",Lib.MakeDecimal(Eval("Late Chg Bal")))%></td></tr>
	<tr>
		<td>Past Due Payments + Current L/C <%=DateTime.Now.ToString("MM/dd/yyyy") %></td>
		<td style="padding-left:10px"><%#-Lib.MakeDecimal(Eval("Partial Payment")) + Lib.MakeDecimal(Eval("PastDuePayments")) + Lib.MakeDecimal(Eval("LateCharges"))%></td>
	</tr>
	<tr visible='<%#Lib.MakeInt(Eval("ShowCurPmt")) == 1 %>' RunAt="server">
		<td>Current Payment No.<%#string.Format("{0:0}", Lib.MakeDecimal(Eval("PaymentsMade"))+1) %> Due <%#Eval("Next Payment Date", "{0:MM/dd/yyyy}")%></td>
		<td><%#Eval("Payment Amount")%></td>
	</tr>
	<tr><td>NSF Charges</td><td><%#Eval("NSF Balance")%></td></tr>
	<tr><td colspan="2" Align="right">-----------</td></tr>
	<tr><td>Total Due</td><td><%#(Lib.MakeInt(Eval("ShowCurPmt")) == 1?Lib.MakeDecimal(Eval("Payment Amount")):0)+Lib.MakeDecimal(Eval("PastDue"))%></td></tr>
</table>

<div Align="center" style="margin-top:30px">
<div style="border:double 3px black;width:75%;text-align:center;white-space:nowrap" Align="center">
** PROTECT YOUR CREDIT RATING **<br />
- PAY PROMPTLY  -<br />
** PAYMENTS ARE DUE ON THE DUE DATE **<br />
** THERE IS NO GRACE PERIOD **<br />
</div>
</div>
<div Align="center" style="margin-top:130px">
<div Align="center" style="width:85%">PLEASE RETURN LOWER PORTION WITH YOUR PAYMENT</div>
</div>
<hr />
<%#Eval("Name")%><br />
<%#Eval("Address")%><br />
<%#Eval("City")%>, <%#Eval("St")%> <%#Eval("Zip Code")%><br />
<div Align="right">
TOTAL PAYMENT DUE <%#Eval("PastDue","{0:c}")%>
</div>
LOAN#: <%#Eval("UsixID")%><br />
DUE DATE <%#Eval("Next Payment Date", "{0:MM/dd/yyyy}")%><br />
<br />
<table CellPadding="0" CellSpacing="0" Width="100%">
	<col Width="50%" /><col Width="20%>" /><col Width="1%" /><col Width="99%" />
	<tr><td>MAIL PAYMENTS TO:</td><td>&nbsp;</td><td>CHANGE OF ADDRESS:</td></tr>
	<tr><td NoWrap><%#Eval("CompanyFullName")%></td><td></td><td colspan="2" Width="50%" style="border-bottom:solid 1px black">&nbsp;</td></tr>
	<tr><td>PO BOX 553250</td><td></td><td colspan="2" Width="50%" style="border-bottom:solid 1px black">&nbsp;</td></tr>
	<tr><td>DAVIE, FL 33325-3250</td><td></td><td colspan="2" Width="50%" style="border-bottom:solid 1px black">&nbsp;</td></tr>
	<tr><td></td><td></td><td nowrap>CHANGE OF PHONE #:</td><td style="border-bottom:solid 1px black">&nbsp;</td></tr>
</table>

</div>
<!-- #include virtual = "Footer.asp" -->
<DS:CollectionInfoDataSource ID="dsExport"
	SelectList="*,GETDATE() DocumentDate,CASE WHEN dbo.Today([Next Payment Date])>=dbo.Today(GETDATE()) THEN 1 ELSE 0 END ShowCurPmt" runat="server" />
